/*------------------------------------------------------------------*/
/*																	*/
/*							MAIN.C      							*/
/* 																	*/
/* 																	*/
/*------------------------------------------------------------------*/

/*------------------------------------------------------------------*/
/*																	*/
/*							Inclusions   							*/
/* 																	*/
/* 																	*/
/*------------------------------------------------------------------*/
#include "constante.h"
#include "ElementL.h"
#include "Liste.h"
#include "fruit.h"
#include "serpent.h"
#include "menu.h"

#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>


int main(int argc, char *argv[])
{
	/*INITIALISATION DE LA SURFACE PRINCIPALE DU PROGRAMME*/
    SDL_Surface *ecran = NULL;
    
    /*INITIALISATION DE LA VIDEO*/
    SDL_Init(SDL_INIT_VIDEO);
    
    /*DEFINITION DU MODE VIDEO*/
    ecran = SDL_SetVideoMode(LARGEUR_FENETRE, HAUTEUR_FENETRE, 32, SDL_HWSURFACE | SDL_DOUBLEBUF);
    
    /*NOM DE LA FENETRE*/
    SDL_WM_SetCaption("Sowlow", NULL);

	/*APPEL DE LA PROCEDURE QUI DEMMARRE LE MENU PRINCIPAL*/
	menu(ecran);
    
    /*ON QUITTE LA SDL*/
    SDL_Quit();
    return EXIT_SUCCESS;
}
